﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FacultyExample
{
    class Faculty
    {
        public String Name;
        public List<Chair> chairs = new List<Chair>();
        public static int facultyCount;


        public static Faculty GenerateRandomFaculty()
        {
            facultyCount++;
            Faculty faculty = new Faculty();
            faculty.Name = "faculty" + facultyCount;
            for (int i = 0; i < 3; i++)
            {
                Chair chr = Chair.GenerateRandomChair();
                faculty.chairs.Add(chr);
            }
            return faculty;
        }
        public static PrintFacultyToConsile()
        {
            Console.WriteLine(+++++++++++++);
            Console.WriteLine("Facylty Name: {0}", Name);
            Console.WriteLine("++++++++++++++++++++++");

        }

    }
}
